#include #include using namespace std; struct Height { int feet; int inches; }; //user defined type struct Superhero { string name; string alias; string power; string movement; string nemesis; bool hasCape; int age; float weight; Height height; //... //default constructor - takes no arguments Superhero() { name = ""; alias = ""; nemesis = "Lex Luthor"; age = 0; weight = 0; power = ""; height.feet = 0; height.inches = 0; hasCape = false; } //constructor Superhero(string defaultName) { name = defaultName; alias = ""; nemesis = "Lex Luthor"; age = 0; weight = 0; power = ""; height.feet = 0; height.inches = 0; hasCape = false; } //member functions, aka methods void get() { cout << "Name? "; cin >> name; cout << "Alias "; cin >> alias; cout << "Nemesis "; cin >> nemesis; cout << "Age "; cin >> age; cout << "Weight "; cin >> weight; cout << "Power "; cin >> power; cout << "Height(feet) "; cin >> height.feet; cout << "Height(inches) "; cin >> height.inches; cout << "Has Cape(Y/N) "; char c; cin >> c; hasCape = (c == 'Y' || c == 'y'); } void display() { cout << name << endl << endl; cout <> superhero.name; cout << "Alias "; cin >> superhero.alias; cout << "Nemesis "; cin >> superhero.nemesis; cout << "Age "; cin >> superhero.age; cout << "Weight "; cin >> superhero.weight; cout << "Power "; cin >> superhero.power; cout << "Height(feet) "; cin >> superhero.height.feet; cout << "Height(inches) "; cin >> superhero.height.inches; cout << "Has Cape(Y/N) "; char c; cin >> c; superhero.hasCape = (c == 'Y' || c == 'y'); } void displaySuperhero(const Superhero& superhero) { cout << superhero.name << endl << endl; cout <